﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="author" content="Aowork">
    <meta name="description" content="">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, maximum-scale=1.0">
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no">

    <title></title>

    <link href="../css/mobile.css" rel="stylesheet" />

    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
    <script src="../js/zepto.min.js"></script>
    <script src="../js/zepto.swipe.js"></script>
    <script src="../js/common.js"></script>
    <script src="../js/config.js"></script>
    <script src="../js/uiExtend.js"></script>
    <script src="../js/wx_config.js"></script>

    <script type="text/javascript">
        jc.fnInit.push(function () {
            jc.ui.header.trigger("updateTitle", "忘记密码");
        });
    </script>

    <script type="text/javascript">
        window.phoneNo = jc.hash.get("phoneNo");
        window.ticket = jc.hash.get("ticket");

        if (!phoneNo || !ticket) {
            window.location.href = window.ctx + "resetPassword/resetPassword.html";
        }
    </script>

    <script type="text/javascript">
        window.btnGroupClick = function (a) {
            jc.ui.form.trigger("confim", function (data) {

                if (!data) {
                    alert("亲！是否漏填了点什么?");
                    return false;
                }

                if (data.newPassword.length < 6) {
                    alert("亲！你的密码过于简单！");
                    return false;
                }

                if (data.newPassword != data.newPassword2) {
                    alert("亲！您输入的2次密码不一致");
                    return false;
                }

                data.phoneNo = window.phoneNo;
                data.ticket = window.ticket;
                $.getJSON(window.path.resetPassword, data, function (result) {
                    if (result.success) {
                        window.location.href = window.ctx + "resetPassword/resetPassword3.html";
                    }
                    else {
                        alert(result.desc);
                    }

                });



            });

        }
    </script>

</head>
<body>

    <div data-ui="header" class="J_header hideLogin">
        <div class="h_inner"></div>
    </div>

    <div data-ui="dotStep" class="J_dotStep mt14">
        <div class="d_item current"><a href="javascript:;">1</a></div>
        <div class="d_item current"><a href="javascript:;">2</a></div>
    </div>


    <div data-ui="form" class="J_form">

        <div data-id="newPassword" class="f_item">
            <div class="i_input">
                <input placeholder="请输入6-16位密码" maxlength="16" type="password">
            </div>
        </div>

        <div data-id="newPassword2" class="f_item">
            <div class="i_input">
                <input placeholder="再输入6-16位密码" maxlength="16" type="password">
            </div>
        </div>
    </div>


    <div data-ui="btnGroup" class="J_btnGroup mt10 p10">
        <a class="abtn green" href="javascript:;">完成修改</a>
    </div>






</body>
</html>
